<?php
    namespace Duobao\Controller;

    use \Think\Controller;

   class LogController extends Controller{
       //记录日志
        public static function write($text){
            $model = M('log');
            $data['text'] = $text;
            $data['time'] = date("Y-m-d H:i:s",time());
            $model->add($data);
        }
   }